package com.easytopit.hibernate.demo.Hibernate_Session;

import java.security.interfaces.RSAMultiPrimePrivateCrtKey;
import java.sql.Blob;
import java.util.Date;


public class News1 {
	private int id;
	private String userName;
	private String passwd;
	private Date date;
	
	private Blob image;
	
	public Blob getImage() {
		return image;
	}
	public void setImage(Blob image) {
		this.image = image;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPasswd() {
		return passwd;
	}
	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}
	
	public News1(String userName, String passwd, Date date) {
		super();
		this.userName = userName;
		this.passwd = passwd;
		this.date = date;
	}
	public News1() {
	
	}
	
	public News1(String userName, String passwd, Date date, Blob image) {
		super();
		this.userName = userName;
		this.passwd = passwd;
		this.date = date;
		this.image = image;
	}
	@Override
	public String toString() {
		return "News1 [id=" + id + ", userName=" + userName + ", passwd=" + passwd + ", date=" + date + ", image="
				+ image + "]";
	}
	
}
